package net.wofly.sale.shoppingcart.entity;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

/**
 * 购物车
 * @author lign
 * @version 1.0
 * @created 29-十月-2017 11:13:51
 */
@Data
@Entity
@IdClass(ShoppingCartPK.class)
@Table(name = "sale_shoppingcart_shoppingcart")
@ApiModel(description = "购物车实体")
@AllArgsConstructor
public class ShoppingCart {

	@Id
	private String shoppingCartID;
	
	@Id
	private Integer shoppingCartType ;

	private Long modifyDate;
	/**
	 * 存用户ID。销售ID或客户ID
	 */
//	public CartList m_CartList;

	public ShoppingCart(){

	}

}